package com.flyone.herbal.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.flyone.herbal.mapper.ChineseMedicineMapper;
import com.flyone.herbal.model.entity.ChineseMedicine;
import com.flyone.herbal.service.ChineseMedicineService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author luoyifei
* @description 针对表【chinesemedicine】的数据库操作Service实现
* @createDate 2024-04-20 09:55:51
*/
@Service
public class ChineseMedicineServiceImpl extends ServiceImpl<ChineseMedicineMapper, ChineseMedicine>
    implements ChineseMedicineService{

    @Resource
    private ChineseMedicineMapper chineseMedicineMapper;

    @Override
    public List<ChineseMedicine> getTCMNameByProvince(String province) {
        List<Integer> idList = chineseMedicineMapper.selectTCMNameByProvince(province);
        return listByIds(idList);
    }
}




